<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="/template/principal_tecnico.xhtml">
        <ui:define name="conteudo">
            <h:form>
                <p:panel header="Atualizar Projetos">
                    <p:messages globalOnly="true"/>
                    <p:tabView >
                        <p:tab title="Lista de Projetos" >
                            <p:dataTable value="#{projeto.listaProjetos}" var="p" rows="10" dynamic="false" paginator="true">
                                <p:column headerText="ID" style="width: 5%" >
                                    <h:outputText value="#{p.idProjeto}"/>
                                </p:column>
                                <p:column headerText="Nome" style="width: 30%" filterBy="#{p.nome}">
                                    <p:commandLink action="#{projeto.editar}" ajax="false">
                                        <h:outputText value="#{p.nome}"/>
                                        <f:param name="idProjeto" value="#{p.idProjeto}"/>
                                    </p:commandLink>
                                </p:column>
                                <p:column headerText="Responsavel" style="width: 30%">
                                    <h:outputText value="#{p.fkTecrespon.fkPessoa.nome}"/>
                                </p:column>
                                <p:column headerText="Situação" style="width: 20%">
                                    <h:outputText value="#{p.situacao}"/>
                                </p:column>
                               
                            </p:dataTable>
                        </p:tab>
                    </p:tabView>
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>
</html>